<div id="page-wrapper">
    <div class="container-fluid">
        <!-- Page Heading -->
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">
                    Hasil Marketing Dan Followup
                </h1>
                <ol class="breadcrumb">
                    <li>
                        <i class="fa fa-dashboard"></i>  <a href="<?php echo base_url(); ?>home">Dashboard</a>
                    </li>
                    <li class="active">
                        <i></i>Detail Hasil Marketing Dan Followup
                    </li>
                </ol>
            </div>
        </div>
        <!-- /.row -->
		<div class="col-lg-12">
        <?php foreach($rows as $row_pf): ?>
            <h4>Hasil Marketing Dan Followup <br> Pada Perusahaan :</h4><h2><?php echo $row_pf->nama_perusahaan ?></h2>
                <div class="form-group">
                            <label>Status Marketing</label>
                            <p class="form-control-static"><?php 
                                                if($row_pf->status_marketing_perusahaan == 'belum'){?>
                                                    <button type="button" class="btn btn-sm btn-info">Belum</button>
                                                <?php } 
                                                elseif ($row_pf->status_marketing_perusahaan == 'positif') { ?>
                                                    <button type="button" class="btn btn-sm btn-primary">Positif</button>
                                                <?php }
                                                elseif ($row_pf->status_marketing_perusahaan == 'negatif') { ?>
                                                    <button type="button" class="btn btn-sm btn-warning">Negatif</button>
                                                <?php }
                                                elseif ($row_pf->status_marketing_perusahaan == 'success') { ?>
                                                    <button type="button" class="btn btn-sm btn-success">Success</button>
                                                <?php } 
                                                else { ?>
                                                    <button type="button" class="btn btn-sm btn-danger">Failed</button>
                                                <?php } ?></p>
                        </div>
            <div class="panel panel-primary">
            <div class="panel-body">    
            <div class="col-lg-6">
                <div class="panel panel-primary" style="border:0px;">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> Hasil Marketing</h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label>Marketer</label>
                            <p class="form-control-static"><?php echo $row_pf->nama_marketer ?></p>
                        </div>
                        <div class="form-group">
                            <label>Waktu Marketing</label>
                            <p class="form-control-static"><?php echo $row_pf->waktu_marketing ?></p>
                        </div>
                        <div class="form-group">
                            <label>Deskripsi Hasil Marketing</label>
                            <p class="form-control-static"><?php echo $row_pf->deskripsi_hasil_marketing ?></p>
                        </div>
                        
                    </div>
                </div>      
            </div>

            <div class="col-lg-6">
                <div class="panel panel-primary" style="border:0px;">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> Hasil Followup</h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label>Teknisi</label>
                            <p class="form-control-static"><?php echo $row_pf->nama_teknisi ?></p>
                        </div>
                        <div class="form-group">
                            <label>Waktu Followup</label>
                            <p class="form-control-static"><?php echo $row_pf->waktu_followup ?></p>
                        </div>
                        <div class="form-group">
                            <label>Deskripsi Hasil Followup</label>
                            <p class="form-control-static"><?php echo $row_pf->deskripsi_hasil_followup ?></p>
                        </div>
                    </div>
                </div>      
            </div>

            </div>
            </div>

            <div class="panel panel-primary">
            <div class="panel-body">             
            <div class="col-lg-6">
                <div class="panel panel-primary" style="border:0px;">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-long-arrow-right"></i> Detail Perusahaan</h3>
                    </div>
                    <div class="panel-body">
                        <div class="form-group">
                        <label>Nama</label>
                        <p class="form-control-static"><?php echo $row_pf->nama_perusahaan ?></p>
                        </div>
                        <div class="form-group">
                            <label>Bidang Usaha</label>
                            <p class="form-control-static"><?php echo $row_pf->kategori_perusahaan ?></p>
                        </div>
                        <div class="form-group">
                            <label>Alamat</label>
                            <p class="form-control-static"><?php echo $row_pf->alamat_perusahaan ?></p>
                        </div>
                        <div class="form-group">
                            <label>Kontak</label>
                            <?php foreach($kontak as $k): ?>
                            <?php if(($k->id_global==$row_pf->id_perusahaan)&&($k->id_user_group==6)) : ?>
                            <p class="form-control-static">&nbsp&nbsp<b><?php echo $k->tipe_kontak ?></b><br>&nbsp&nbsp<?php echo $k->kontak ?></p>
                            <?php endif ?>
                            <?php endforeach ?>
                        </div>
                        <div class="form-group">
                            <label>Keterangan</label>
                            <p class="form-control-static"><?php echo $row_pf->keterangan_perusahaan ?></p>
                        </div>
                    </div>
                </div>      
            </div>
            </div>
            </div>                       
            <?php endforeach ?>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.container-fluid -->